import {defineStore} from "pinia";
import {getDepartmentDoctorList} from "@/api/doctor";

type TState ={
    departmentDoctorList:any
}
const useDoctorStore = defineStore("Doctor",{
    state():TState{
        return {
            departmentDoctorList:[]
        }
    },
    actions:{
        async getDepartmentDoctorListAsync(departmentId:string){
            const result:any = await getDepartmentDoctorList(departmentId);
            this.departmentDoctorList = result.data;

        }
    }
});
export default useDoctorStore;